<%@page import="multiface.awwadco.jpa.Utente"%>
<%
    Utente ut = (Utente) session.getAttribute("admin");
    if (ut == null) {
        response.sendRedirect(multiface.web.util.ServletUtils.getBaseUrl(request) + "/admin/index.jsp?err=y");
    }
%>

<div class="title">Commands</div>
<ul>
    <li id="new_news"><a href="javascript:open('add_news.jsp')">Insert News</a></li>
</ul>
<div class="title">Search News</div>
<ul>
    <label for="search">Title or Text</label>
    <input class="input-search" name="search" id="search" type="text" value="<%=request.getParameter("text")!= null ? request.getParameter("text") : ""%>"/>
</ul>

<script>
    $("#search").keyup(function () {
        search('list_news.jsp',{},'center');
    });
</script>